<include file="public@header" />
</head>
<body>
	<php>$results=''</php>
	<div class="wrap ">
		<ul class="nav nav-tabs">
			<li><a href="{:url('Construction/index')}">项目管理</a></li>
			<li><a href="{:url('Construction/add')}">发起项目</a></li>
			<li class="active"><a href="">物料申购历史</a></li>
		</ul>
        	<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="left" width="5%">ID</th>
						<th align="left" width="8%">编号</th>
						<th align="left" width="10%">物料名称</th>
                        <th align="left" width="5%">价格</th>
						<th align="left" width="5%">单位</th>
						<th align="left" width="8%">税金</th>
						<th align="left" width="8%">数量</th>
                        <th align="left" width="8%">金额</th>
                        <th align="left" width="10%">所属库房</th>
                        <th align="left" width="8%">库存量</th>
						<if ($show_flag)==1>
							<th align="left" width="6%">表单状态</th>
							<th align="left" width="8%">审批人</th>
							<th align="left" width="13%">审批时间</th>
						</if>
					</tr>
				</thead>
				<tbody>
				<foreach name="resultslist" item="vo">
					<tr>
						<td>{$vo.am_id}</td>
						<td>
							{$vo.goods_num}
						</td>
						<td>{$vo.goods_name}</td>
						<td>{$vo.price}</td>
						<td>{$vo.price_unit}</td>
						<td>{$vo.tax_money}</td>
						<td>{$vo.num}</td>
						<td>{$vo.total_price}</td>
						<td>{$vo.room_name}</td>
						<td>{$vo.stock}</td>
						<if ($show_flag)==1>
						<td>
							<if ($vo.approval_status)==1><label style="color:#FF0000">待审批</label>
								<elseif ($vo.approval_status)==2/>
									<label style="color:#87CEFA">已同意</label>
									<elseif ($vo.approval_status)==3/>
										<label style="color:#43CD80">已驳回</label>
							</if>
						</td>
						<td>{$vo.approval_user}</td>
						<td>
							<if ($vo.approval_status)!=1>
							<php>echo date('Y-m-d H:i:s', $vo['approval_time'])</php>
							</if>
						</td>
						</if>
					</tr>
				</foreach>
				</tbody>
			</table>
		<div class="form-actions">
			<a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
		</div>
	</div>
	<script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>

</body>
</html>




